package com.fengye.model;


import java.io.Serializable;

/**
 * @Author fengye
 * @Date 2023/2/12 16:41
 **/
public class RemoteResponse implements Serializable {

    private static final long serialVersionUID = 6360446116060031597L;
    /**
     * UUID,唯一标识，一次返回值
     */
    private String uniqueKey;

    /**
     * 客户端指定的服务超时时间
     */
    private long invokeTimeout;

    /**
     * 接口调用返回的结果对象
     */
    private Object result;

    /**
     * 服务调用是否成功标识
     */
    private boolean success;

    public String getUniqueKey() {
        return uniqueKey;
    }

    public void setUniqueKey(String uniqueKey) {
        this.uniqueKey = uniqueKey;
    }

    public long getInvokeTimeout() {
        return invokeTimeout;
    }

    public void setInvokeTimeout(long invokeTimeout) {
        this.invokeTimeout = invokeTimeout;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }
}
